package com.heima.controller;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.search.dtos.UserSearchDto;
import com.heima.service.SearchArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chenshan
 */
@RestController
@RequestMapping("/api/v1/associate")
public class SearchAssociateController {

    @Autowired
    private SearchArticleService searchService;


    @PostMapping("search")
    public ResponseResult searchAssociate(@RequestBody UserSearchDto searchDto)  {
        return searchService.searchAssociate(searchDto);
    }

}
